package view;





import javax.swing.ImageIcon;

/**
 * Manages the Icons
 * 
 * This class sets the icons path to the img folders, it also returns the Image Icon object
 * to be used in different views. This decreases clutter in different classes and makes the 
 * access point for icons in one place.
 * 
 * @author MUSAB
 * @since May, 2013
 * @version $Revision: 1.0 $
 */
class IconsManager {
	
	/**
	 * Path to icons
	 */
	public static String iconsPath = System.getProperty("user.dir") + "/img/icons/";
	
	/** Returns an ImageIcon, or null if the path was invalid. * @param filename String
	 * @return ImageIcon
	 */
	public static ImageIcon getImageIcon(String filename) {
		return  new ImageIcon(iconsPath + filename, "");
	}
	
}
